package javaTest02.exercise_1;

public class ClassToJavaTest {
    public static void main(String[] args) throws ClassNotFoundException {

        String path = "src/javaTest02/exercise_1/out/";//路径
        String fileName = "ReflectTest.java";//文件名
        Class<?> clazz=Class.forName("javaTest02.utils.Person");//获取Class对象
        ClassToJava classToJava=new ClassToJava();
        System.out.println(classToJava.generateJavaFile(clazz, path, fileName)?"文件转换成功! 目标路径"+path:"文件转换失败!");

    }
}
